package edu.ubb.remeye.gui.event.manager;

import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;

import edu.ubb.remeye.control.Control;
import edu.ubb.remeye.gui.event.EventType;

/**
 * Class for managing mouse motion events.
 * 
 * @author Andrew Ianicicau
 *
 */
public class MouseMotionEventManager extends MouseMotionAdapter {

	///////////////////////////////////////////////////////////////////////////////////
	////		METHODS - MouseMotionEventManager
	///////////////////////////////////////////////////////////////////////////////////
	
	/**
	 * Sends a MOUSE_MOVED event when mouse is moved.
	 */
	@Override
	public void mouseMoved(MouseEvent e) {
		Control.sendEvent(EventType.MOUSE_MOVED, e);
	}

	/**
	 * Sends a MOUSE_DRAGGED event when mouse is dragged.
	 */
	@Override
	public void mouseDragged(MouseEvent e) {
		Control.sendEvent(EventType.MOUSE_DRAGGED, e);
	}

}